package exceptions;

/**
 * Exception is thrown if the object with a specific id is not found
 * @author Martin Schophaus
 *
 */
@SuppressWarnings("serial")
public class IdNotFoundException extends Exception{
	
	private int id;
	private String target;
	
	/**
	 * Constructor sets the id and target
	 * @param id id of the object which is not found
	 * @param target String which describes the location from where the object was requested
	 */
	public IdNotFoundException(int id, String target){
		this.id = id;
		this.target = target;
	}
	
	/**
	 * 
	 * @return Returns the id
	 */
	public int getId(){
		return this.id;
	}
	
	/**
	 * 
	 * @return Returns the target string
	 */
	public String getTarget(){
		return this.target;
	}
}
